package com.vs.meepet.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

public class GeeTestResultBean implements Serializable {

    /**
     * 流水号，一次完整验证流程的唯一标识
     */
    @SerializedName("geetest_challenge")
    public String gtChallenge;

    /**
     * 待校验的核心数据，geetest_validate加上|jordan组成的字符串
     */
    @SerializedName("geetest_seccode")
    public String gtSeccode;

    /**
     * 待校验的核心数据
     */
    @SerializedName("geetest_validate")
    public String gtValidate;

    /**
     * 获取极验返回的userId
     */
    public String gtUserId;

    /**
     * 请求id 用来标识某一次请求 串联起注册与验证 两个环节
     */
    public String requestId;

    /**
     * 图形验证码 宕机模式下使用
     */
    public String captchaCode;

    public GeeTestResultBean(String gtChallenge, String gtSeccode, String gtValidate, String userId) {
        this.gtChallenge = gtChallenge;
        this.gtSeccode = gtSeccode;
        this.gtValidate = gtValidate;
        this.gtUserId = userId;
    }

    public GeeTestResultBean(String gtChallenge, String gtSeccode, String gtValidate, String gtUserId, String requestId, String captchaCode) {
        this.gtChallenge = gtChallenge;
        this.gtSeccode = gtSeccode;
        this.gtValidate = gtValidate;
        this.gtUserId = gtUserId;
        this.requestId = requestId;
        this.captchaCode = captchaCode;
    }

    public GeeTestResultBean(String gtUserId, String requestId, String captchaCode) {
        this.gtUserId = gtUserId;
        this.requestId = requestId;
        this.captchaCode = captchaCode;
    }
}

